import { request } from '../index'

export function reguser(username, password) {
  return request({
    url: '/api/reguser',
    method: 'post',
    data: {
      username,
      password
    }
  })
}

export function login(username, password) {
  return request({
    url: '/api/login',
    method: 'post',
    data: {
      username,
      password
    }
  })
}